-- GENERATED SPELL FOR [Corrupted Rager] --


function spell0_21223(pUnit, Event) --@Corrode Armor,n/a--
pUnit:FullCastSpellOnTarget(51613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21223', 8000, 1)
end

function Sorts_21223(pUnit, Event)
local choix_sorts_21223 = math.random(0, 0)
if choix_sorts_21223 == 0 then
pUnit:RegisterEvent('spell0_21223', 1, 1)
end
end

function mob21223_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21223', math.random(1500, 3000), 1)
end

function mob21223_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21223_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21223_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21223, 1, 'mob21223_Action')
RegisterUnitEvent(21223, 2, 'mob21223_Leave')
RegisterUnitEvent(21223, 3, 'mob21223_Kill')
RegisterUnitEvent(21223, 4, 'mob21223_Die')
